import request from '@/utils/request'

// 获取轮播图
export function getCirPic() {
  return request({
    url: '/index/getCirPic',
    method: 'get',
    headers: {
      isToken: false
    },
  })
}
// 获取展会列表
export function exhibition_list(data) {
  return request({
    url: '/exhibition/exhibition_info/list',
    method: 'get',
    headers: {
      isToken: false
    },
    params:data
  })
}
// 资料下载
export function getfile(id) {
  return request({
    url: '/exhibition/file/list',
    method: 'get',
    params:{
      exhibitionId:id
    }
  })
}
// 首页信息
export function getIndexInfo(id) {
  return request({
    url: '/index/getIndexInfo',
    method: 'get',
    headers: {
      isToken: false
    },
    params:{
      exhibitionId:id
    }
  })
}
// 通过展位号查询参展商
export function stand_info(id) {
  return request({
    url: '/exhibition/stand_info/list',
    method: 'get',
    params:{
      standNum:id
    }
  })
}
// 查询购物车列表
export function getshopcar(userId, exhibitionId) {
  return request({
    url: '/exhibition/item/listForWeb',
    method: 'get',
    params: {
      userId: userId,
      exhibitionId: exhibitionId
    }
  })
}
// 查询展会列表详细
export function getExhibition_info(id) {
  return request({
    url: '/exhibition/exhibition_info/' + id,
    method: 'get'
  })
}